<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGameJbpUserYbPending extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_jbp_user_yb_pending', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->unsigned()->comment('用户ID');
            $table->enum('type', ['Y', 'J', 'L', 'H'])->comment('元宝类型 Y-银 J-金 L-蓝 H-红');
            $table->tinyInteger('status')->default(0)->comment('发放状态 0-等待 1-成功 2-失败');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('game_jbp_user_yb_pending');
    }
}
